package com.yesep.learn.design.common.pojo;

public class RAMComponent extends ComputerComponent {
    public RAMComponent() {

    }

    public RAMComponent(String model, double consumption) {
        this();
        setModel(model);
        setConsumption(consumption);
    }

    public void load(long address, byte data) {
        System.out.printf("The %s %s is load data %s into memory at address %s. \n", this.getClass().getSimpleName().toLowerCase(), getModel(), data, address);
    }
}
